package com.olddriver.crm.service;

import com.olddriver.crm.domain.Carproduct;
import com.olddriver.crm.page.PageResult;
import com.olddriver.crm.query.CarproductQueryObject;

import java.util.List;

/**
 * Created by 季节 on 2017/12/4
 */
public interface ICarproductService {
    int deleteByPrimaryKey(Long id);

    int insert(Carproduct record);

    Carproduct selectByPrimaryKey(Long id);

    List<Carproduct> selectAll();

    int updateByPrimaryKey(Carproduct record);

    PageResult query(CarproductQueryObject qo);

    void changeState(Long id);

    List<Carproduct> getCarproductByMechId(Long id);
}
